Table of Contents

Module: SOX .\src\TW\Utils\SOX.py

Simple Objects from XML - quick-and-dirty XML parsing without a DOM

This module implements most of the overhead needed for turning SAX events into a hierarchy of objects. E.g., stack handling, delegation to node classes, etc.

Note: I originally wrote this module because the Python default DOM for XML (way back in the XML-SIG for Python 1.5.2 days) was horrendously slow for processing (typically enormous) XMI files. If 2.2 minidom is fast enough and easy enough to use, this package may go away once I've ported the XMI support to minidom. So let me know if you're using this module for anything; I have some non-TransWarp uses for it myself, but depending on how easy using minidom turns out to be... I may switch them over too!

Imported modules   
import Interface
from xml.sax import ContentHandler, parse
Functions   
load
  load 
load ( filename_or_stream,  documentObject=None )

Build a tree from a filename/stream, rooted in a document object

Classes   
Document
ISOXNode

Object mapping from an XML element

Node

Simple, DOM-like ISOXNode implementation

ObjectMakingHandler

SAX handler that makes a pseudo-DOM


Table of Contents

This document was automatically generated on Tue Mar 05 10:33:49 2002 by HappyDoc version WORKING